package org.cs.publics.model;
// Generated 2018-12-28 17:39:08 by Hibernate Tools 5.2.3.Final

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 拼团商品规格表
 */

/**
 * GroupExplain generated by hbm2java
 */
@Entity
@Table(name = "group_explain", catalog = "good_fresh")
public class GroupExplain implements java.io.Serializable {

	private Integer groupExplainId;
	private GroupInfo groupInfo;
	private String groupExplainName;
	private Long groupExplainGroupPrice;
	private Long groupExplainPrice;
	private Integer groupExplainNumber;
	private Date createTime;
	private Date updateTime;
	private String goodsHoldOne;
	private String goodsHoldTwo;

	public GroupExplain() {
	}

	public GroupExplain(GroupInfo groupInfo, String groupExplainName, Long groupExplainGroupPrice,
			Long groupExplainPrice, Integer groupExplainNumber, Date createTime, Date updateTime, String goodsHoldOne,
			String goodsHoldTwo) {
		this.groupInfo = groupInfo;
		this.groupExplainName = groupExplainName;
		this.groupExplainGroupPrice = groupExplainGroupPrice;
		this.groupExplainPrice = groupExplainPrice;
		this.groupExplainNumber = groupExplainNumber;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.goodsHoldOne = goodsHoldOne;
		this.goodsHoldTwo = goodsHoldTwo;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "GROUP_EXPLAIN_ID", unique = true, nullable = false)
	public Integer getGroupExplainId() {
		return this.groupExplainId;
	}

	public void setGroupExplainId(Integer groupExplainId) {
		this.groupExplainId = groupExplainId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "GROUP_INFO_ID")
	public GroupInfo getGroupInfo() {
		return this.groupInfo;
	}

	public void setGroupInfo(GroupInfo groupInfo) {
		this.groupInfo = groupInfo;
	}

	@Column(name = "GROUP_EXPLAIN_NAME", length = 100)
	public String getGroupExplainName() {
		return this.groupExplainName;
	}

	public void setGroupExplainName(String groupExplainName) {
		this.groupExplainName = groupExplainName;
	}

	@Column(name = "GROUP_EXPLAIN_GROUP_PRICE", precision = 10, scale = 0)
	public Long getGroupExplainGroupPrice() {
		return this.groupExplainGroupPrice;
	}

	public void setGroupExplainGroupPrice(Long groupExplainGroupPrice) {
		this.groupExplainGroupPrice = groupExplainGroupPrice;
	}

	@Column(name = "GROUP_EXPLAIN_PRICE", precision = 10, scale = 0)
	public Long getGroupExplainPrice() {
		return this.groupExplainPrice;
	}

	public void setGroupExplainPrice(Long groupExplainPrice) {
		this.groupExplainPrice = groupExplainPrice;
	}

	@Column(name = "GROUP_EXPLAIN_NUMBER")
	public Integer getGroupExplainNumber() {
		return this.groupExplainNumber;
	}

	public void setGroupExplainNumber(Integer groupExplainNumber) {
		this.groupExplainNumber = groupExplainNumber;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME", length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UPDATE_TIME", length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "GOODS_HOLD_ONE", length = 25)
	public String getGoodsHoldOne() {
		return this.goodsHoldOne;
	}

	public void setGoodsHoldOne(String goodsHoldOne) {
		this.goodsHoldOne = goodsHoldOne;
	}

	@Column(name = "GOODS_HOLD_TWO", length = 25)
	public String getGoodsHoldTwo() {
		return this.goodsHoldTwo;
	}

	public void setGoodsHoldTwo(String goodsHoldTwo) {
		this.goodsHoldTwo = goodsHoldTwo;
	}

}
